package com.shzg.im.model;

import java.sql.Date;
import java.util.Set;

/**
 * 
 * 用户群组实体
 * 
 * @author MT
 *
 */
public class Group {

    private String id;

    private String name;

    private String description;

    private String creator_id;

    private Date create_time;

    private String avatar;

    /*
     * 群组成员
     */
    private Set<User> members;

    public Set<User> getMembers() {
        return members;
    }

    public void setMembers(Set<User> members) {
        this.members = members;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCreator_id() {
        return creator_id;
    }

    public void setCreator_id(String creator_id) {
        this.creator_id = creator_id;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    @Override
    public String toString() {
        return String.format(
                "Group [id=%s, name=%s, description=%s, creatorId=%s, createTime=%s, avatar=%s, members=%s]", id, name,
                description, creator_id, create_time, avatar, members);
    }

}
